package com.raymond.entity;

import com.raymond.annotation.XmlNode;
import com.raymond.annotation.XmlRootNode;

/**
 * @author :  raymond
 * @version :
 * @date :  2019-12-06 13:45
 */
@XmlRootNode(name = "root")
public class SmsMessage {
    /**
     * 用户名
     */
    @XmlNode(name = "userid")
    private String userid;

    /**
     * 密码
     */
    @XmlNode(name = "password")
    private String password;

    /**
     * 用于额外权限校验
     */
    @XmlNode(name = "permission")
    private String permission;
    /**
     * body内容
     */
    @XmlNode(name = "body", isChildNodes = true)
    private SmsBody smsBody;

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public SmsBody getSmsBody() {
        return smsBody;
    }

    public void setSmsBody(SmsBody smsBody) {
        this.smsBody = smsBody;
    }
}
